package com.wu.cloud.custom.controller;

import com.wu.cloud.custom.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 50816
 */
@RestController
public class TestController {

    @Value("${spring.application.name}")
    private String appName;

    @Autowired
    TestService testService;


    @GetMapping(value = "/user/{name}")
    public String user(@PathVariable String name) {
        return name;
    }

}
